import { SetMetadata, createParamDecorator,ExecutionContext} from '@nestjs/common';
import { Request } from 'express'


export const Role = (...args: string[]) => SetMetadata('role', args);


export const ReqUrl = createParamDecorator((data:unknown,ctx:ExecutionContext)=>{
    console.log("data",data)
    const req = ctx.switchToHttp().getRequest<Request>()
    return req.path
})